Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create group chat comp contract verify #772

Merged

Conversation

MdTeach
Copy link
Contributor

@MdTeach MdTeach commented Oct 11, 2023

No description provided.

@github-actions
Copy link

All looks good.

Copy link
Collaborator

@mishramonalisha76 mishramonalisha76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when i edit the contract address after adding any token to nft cotract address, the symbol shows token in the second line.
when i change to ERC721 unit should change to NFT, before adding valid nft contract

Error creating nft condition from backend for holder sub-category

@github-actions
Copy link

All looks good.

@github-actions
Copy link

File: packages/uiweb/src/lib/components/chat/CreateGroup/AddCriteria.tsx

  • Line 6: "styled" import is missing.
  • Line 26: "function" should have a return type.
  • Line 28: "CriteriaProps" interface is missing semicolon at the end.
  • Line 51: "MoreOptionsContainer" component is missing closing curly brace and semicolon at the end.
  • Line 53: "theme" is not defined.
  • Line 95: "checkIfNftToken" function is missing closing curly brace.
  • Line 101: "getGuildRole" function is missing closing curly brace.
  • Line 108: Closing parenthesis is missing after "25".
  • Line 112: Closing curly brace is missing after "return conditionData.category".
  • Line 130: Closing curly brace is missing after "Owner and Admin can invite".
  • Line 133: Missing closing parenthesis after "CATEGORY.INVITE".
  • Line 137: Missing closing parenthesis after "CATEGORY.CustomEndpoint".
  • Line 139: "getGuildRole" function is missing closing parenthesis.
  • Line 143: Closing parenthesis is missing after "{getGuildRole()} role".

File: packages/uiweb/src/lib/components/chat/CreateGroup/ConditionsComponent.tsx

  • Line 10: "import Dropdown, { DropdownValueType } from '../reusables/DropDown'" is missing import statement.
  • Line 11: "import EditSvg from '../../../icons/EditSvg.svg'" is missing import statement.
  • Line 12: "import RemoveSvg from '../../../icons/RemoveSvg.svg'" is missing import statement.
  • Line 15: "import GUILD_COMPARISON_OPTIONS from '../constants'" is missing import statement.
  • Line 28: "Margin" component is not defined.
  • Line 42: "invetedIcon" should be "invertedIcon".
  • Line 56: "setSelectedIndex" should have an explicit type instead of "any".
  • Line 64: Closing parenthesis is missing after "modalHoverBackground".
  • Line 74: "criteriaData" should be "conditonData".
  • Line 77: Missing closing parenthesis after "{criteriaData.category as CriteriaType}".
  • Line 79: Unmatched closing parenthesis after "modalHeadingText".
  • Line 82: Missing closing parenthesis after "modalSubHeadingText".
  • Line 88: Missing closing parenthesis after "modalSubHeadingText".
  • Line 94: Unmatched closing parenthesis after "modalSubHeadingText".
  • Line 98: Missing closing parenthesis after "modalSubHeadingText".
  • Line 100: Missing closing parenthesis after "modalHeadingText".
  • Line 101: Missing closing parenthesis after "modalHeadingText".
  • Line 105: Missing closing parenthesis after "tokenId".
  • Line 106: Missing closing parenthesis after "tokenId".
  • Line 107: Missing closing parenthesis after "modalHeadingText".
  • Line 111: Missing closing parenthesis after "modalHeadingText".
  • Line 112: Missing closing parenthesis after "modalHeadingText".
  • Line 116: Missing closing parenthesis after "modalHeadingText".
  • Line 118: Unmatched closing parenthesis after "modalHeadingText".

File: packages/uiweb/src/lib/components/chat/CreateGroup/CreateGroupModal.tsx

  • Line 62: "CreateGroupType" component is missing closing parenthesis.
  • Line 65: "DefineCondtion" component is missing closing parenthesis.
  • Line 68: "AddCriteria" component is missing closing parenthesis.
  • Line 77: "renderComponent" function is missing closing curly brace.
  • Line 96: Closing parenthesis is missing after "as CreateGroupStepKeys".
  • Line 110: Closing parenthesis is missing after "as CreateGroupStepKeys".

File: packages/uiweb/src/lib/components/chat/helpers/tokenGatedGroup.ts

  • Line 12: "return fetchERC20TokenInfo(address, chainId)" should be "return fetchERC20Info(address, chainId)".
  • Line 18: "criteriaStateManager.resetRules()" should be "criteriaStateManager.resetUpdateRules()".
  • Line 22: "criteriaStateManager.resetCriteriaIdx()" should be "criteriaStateManager.resetCondtionIdx()".

File: packages/uiweb/src/lib/components/chat/helpers/tokenHelpers/abi.ts

  • Line 10: Closing parenthesis is missing after "uint8' }]".
  • Line 12: "constant" should be "constant: true".
  • Line 13: "payable" should be "payable: false".

File: packages/uiweb/src/lib/components/chat/helpers/tokenHelpers/chain.ts

@github-actions
Copy link

File: packages/uiweb/src/lib/components/chat/CreateGroup/AddCriteria.tsx

  • Line 43: The function name CriteraValueType should be changed to CriteriaValueType.
  • Line 46: The prop moreOptions should be of type boolean instead of undefined.
  • Line 78: The closing curly brace for the function getTokenSymbol is missing.
  • Line 110: There is a missing closing parenthesis ) at the end of the line.
  • Line 123: The condition if (criteria.category === CATEGORY.CustomEndpoint) does not have a closing curly brace.
  • Line 137: The closing parenthesis at the end of the line is not closed properly.

File: packages/uiweb/src/lib/components/chat/CreateGroup/ConditionsComponent.tsx

  • Line 28: The const getGuildRole function is missing a closing curly brace.
  • Line 45: The CriteriaSection component is missing a closing curly brace.
  • Line 72: The condition if (criteria.category === CATEGORY.ROLES) does not have a closing curly brace.
  • Line 97: There is a missing closing parenthesis } at the end of the line.
  • Line 100: The closing parenthesis }) is not closed properly.
  • Line 114: The ConditionsComponent component is missing a closing curly brace.

File: packages/uiweb/src/lib/components/chat/CreateGroup/CreateGroupModal.tsx

  • Line 23: The enum CreateGroupStepKeys is not properly defined. The closing curly brace is missing.
  • Line 49: The handlePrevious function is missing a closing parenthesis ) at the end of the line.
  • Line 68: The if statement on this line should be closed with a closing curly brace.
  • Line 84: The renderComponent function is missing a closing curly brace.
  • Line 91: The opening curly brace for the CreateGroupType component is missing.
  • Line 95: The opening curly brace for the DefineCondtion component is missing.
  • Line 99: The opening curly brace for the AddCriteria component is missing.
  • Line 111: There is a missing closing parenthesis ) at the end of the line.
  • Line 127: There is a missing closing parenthesis ) at the end of the line.
  • Lines 130-138: There are multiple closing curly braces that are not properly aligned.

File: packages/uiweb/src/lib/components/chat/helpers/tokenGatedGroup.ts

  • Line 26: The handleDefineCondition function is missing a closing curly brace.
  • Line 56: The validateGUILDData function is missing a closing curly brace.
  • Line 76: The validateTokenData function is missing a closing curly brace.
  • Line 106: The validationCriteria function is missing a closing curly brace.
  • Line 138: There are multiple closing curly braces that are not properly aligned.

File: packages/uiweb/src/lib/components/chat/helpers/tokenHelpers/abi.ts

  • There is a missing opening curly brace { at the beginning of the NFTContractABI array.
  • There is a missing closing curly brace } at the end of the TokenContractABI array.

File: packages/uiweb/src/lib/components/chat/helpers/tokenHelpers/chain.ts

  • Line 7: The getRpcURL function is missing a closing parenthesis ) at the end of the line.
  • Line 8: The opening curly brace { for the getRpcURL function is missing.

File: packages/uiweb/src/lib/components/chat/helpers/tokenHelpers/truncateTokenSymbol.ts

  • Line 5: The truncateTokenSymbol function is missing a closing curly brace.

File: packages/uiweb/src/lib/components/chat/reusables/QuantityInput.tsx

  • The file is empty. There should be code inside the file.

File: packages/uiweb/src/lib/components/chat/types/tokenGatedGroupCreationType.ts

  • The file is empty. There should be code inside the file.

File: packages/uiweb/src/lib/hooks/chat/useCriteriaState.ts

  • The file is empty. There should be code inside the file.

@mishramonalisha76 mishramonalisha76 merged commit 03a2851 into create-group-chat-comp Oct 13, 2023
1 check passed
@github-actions
Copy link

File: packages/examples/sdk-frontend-react/src/app/app.tsx

  1. The opening and closing brackets for the ConnectButtonComp component are not aligned properly. Ensure proper alignment.

  2. The closing brackets for the following components are missing:

    • SECRET NOTIFICATION
    • CHANNELS
    • ALIAS
    • DELEGATIONS
    • PAYLOADS
    • SOCKET
    • EMBED
    • CHAT
    • CHAT UI
    • SPACE
    • SPACE UI
  3. The closing bracket for the SpacesUIProvider component is missing.

  4. The opening and closing brackets for the ChatUIProvider component are not aligned properly. Ensure proper alignment.

  5. The opening and closing brackets for the Route component are not aligned properly. Ensure proper alignment.

  6. The opening and closing brackets for the NavMenu component are not aligned properly. Ensure proper alignment.

  7. The closing bracket for the CriteriaSection component is missing.

  8. The closing bracket for the ConditionsComponent component is missing.

  9. The closing brackets for the MoreOptionsContainer component are not aligned properly. Ensure proper alignment.

  10. The opening and closing brackets for the useClickAway hook are not aligned properly. Ensure proper alignment.

  11. The opening and closing brackets for the CriteriaProps interface are not aligned properly. Ensure proper alignment.

  12. The opening and closing brackets for the CriteriaValueType type are not aligned properly. Ensure proper alignment.

  13. The opening and closing brackets for the MoreOptionsContainerProps interface are not aligned properly. Ensure proper alignment.

  14. The opening and closing brackets for the ConditionsComponent component are not aligned properly. Ensure proper alignment.

  15. The opening and closing brackets for the CreateGroupModal component are not aligned properly. Ensure proper alignment.

  16. The opening and closing brackets for the CreateGroupStepKeys type are not aligned properly. Ensure proper alignment.

  17. The closing bracket for the handlePrevious function is missing.

  18. The closing bracket for the renderComponent function is missing.

  19. The closing bracket for the validateGUILDData function is missing.

  20. The closing bracket for the validateCustomEndpointData function is missing.

  21. The closing bracket for the validateTokenData function is missing.

  22. The closing bracket for the validationCriteria function is missing.

File: packages/uiweb/src/lib/components/chat/CreateGroup/AddCriteria.tsx

  • All looks good.

File: packages/uiweb/src/lib/components/chat/CreateGroup/ConditionsComponent.tsx

  • There is a missing closing bracket for the useDummyGroupInfo variable declaration. Add the closing bracket after the groupImage property.

  • The opening and closing brackets for the handleNext function are not aligned properly. Ensure proper alignment.

  • The opening and closing brackets for the handlePrevious function are not aligned properly. Ensure proper alignment.

  • The closing bracket for the renderComponent function is missing.

File: packages/uiweb/src/lib/components/chat/CreateGroup/CreateGroupModal.tsx

  1. The closing bracket for the handlePrevious function is missing.

  2. The closing bracket for the useEffect hook is missing.

  3. The opening and closing brackets for the CreateGroupDetail component are not aligned properly. Ensure proper alignment.

  4. The opening and closing brackets for the CreateGroupType component are not aligned properly. Ensure proper alignment.

  5. The opening and closing brackets for the DefineCondtion component are not aligned properly. Ensure proper alignment.

  6. The opening and closing brackets for the AddCriteria component are not aligned properly. Ensure proper alignment.

  7. The closing brackets for the switch statement in the renderComponent function are missing.

File: packages/uiweb/src/lib/components/chat/helpers/tokenGatedGroup.ts

  • All looks good.

File: packages/uiweb/src/lib/components/chat/helpers/tokenHelpers/abi.ts

  • All looks good.

File: packages/uiweb/src/lib/components/chat/helpers/tokenHelpers/chain.ts

  • All looks good.

File: packages/uiweb/src/lib/components/chat/helpers/tokenHelpers/fetch.ts

  • All looks good.

File: packages/uiweb/src/lib/components/chat/helpers/tokenHelpers/index.ts

  • All looks good.

File: packages/uiweb/src/lib/components/chat/reusables/QuantityInput.tsx

  • All looks good.

File: packages/uiweb/src/lib/components/chat/theme/index.ts

  • All looks good.

File: packages/uiweb/src/lib/components/chat/types/tokenGatedGroupCreationType.ts

  • All looks good.

File: packages/uiweb/src/lib/hooks/chat/useCriteriaState.ts

  • All looks good.

mohammeds1992 pushed a commit that referenced this pull request Oct 13, 2023
* Chat profile refractor (#727)

* fix: fixed minor bugs and made add wallets reusable

* fix: refactored code

* fix: fixed ens domains not working while adding more wallets to a group

* fix: fixed back btn in add wallet and cofirm btn ui

* fix: fixed theme in chat profile

* fix: refractor of addWallet

* fix: ens issues

* fix: adde changes

* fix: fixed lint issues

* fix: fixed review comments

* fix: fixed minor review comments

---------

Co-authored-by: KlausMikhaelson <[email protected]>

* Refactoring of messageInput, chatBubble, connectButton,chatViewList, chatViewComponent (#718)

* fix: added accoutn hook

* fix: refactoring code of messageInput chatlist chatbubble

* fix: fixed review comment

* fix: fixed

* fix: added reusables

* fix: fixed toast

* feat: create group modal

* fix: fixed condition in messageInput

* fix: fixed

* fix: fixed code

* feat: create group info validation done (#738)

* fix: fixed autoconnect issues

* Group criteria added (#764)

* feat: created define criteria and add criteria

* feat: added some more dropdowns in add criteria

* fix: added critera options

* feat: worked on criterias

* Arbitrum changes (#735)

* fix: inital implementation for arbitrum changes

* fix: more changes

* fix: added final changes

* fix: fixed few ui issues

* fix: fixed minor issue

* fix: added operstor

* fix: added dummy 2d data

* fix: fixed test

* feat: condition type added

* feat: adder done

* feat: all/any added on condition box

* fix: minor fixes

* fix: fixed typo

* fix: fixed upload group image ui

* Multiple group criteria (#747)

* fix: fixed multiple criteria Ui

* fix: fixed conditions code

---------

Co-authored-by: KlausMikhaelson <[email protected]>

* docs: added Class Examples (#739)

* docs: added documentation

* docs: fixed chat class examples

* docs: fix notif class

* docs: fixed stream examples

* docs: fix nft grp update

* docs: fixed logs

* Message Type Implementations (#730)

* fix: added video & audio messages

* fix: fixed meta, reaction & added intent & readReceipt

* fix: added reply

* fix: added composite, fixed receipt

* fix: local tests (#744)

* fix(env and index): fixes typo RECIPEINT to RECIPIENT (#743)

fix #733

* Update README.md (#742)

Changed the discord link

* feat: add criteria done

* fix: fixed themes

* feat: rule deletion done

* feat: condition update done

* feat: add criteria update lablel done

* feat: edit rule auto fill done

* feat: pr changes done

* feat: refactor type and hooks

* fix: fixed mobilde view

* fix: fixed scroll

* feat: added icon in groupinfo to show if it is token gated or not (#748)

* feat: added icon in groupinfo to show if it is token gated or not

* fix: fixed minor text

* feat: created group criteria info modal and fixed dropdown

* fix: made changes as per the review

* fix: removed more options from conditions in group info

* fix: fixed minor issues

---------

Co-authored-by: Monalisha Mishra <[email protected]>

* feat: drop down labels

* fix: fixed

* fix: fixed dropdown

* Gp states fix (#763)

* feat: conditions to chat added

* feat: generation of payload done

* refactor: rule generation done

* feat: operator undefined fix

* fix: fixed condition ui

* feat: create group rest api call done

* fix: fixed dropdown

* feat: group detail info fix done

* fix: added validation for guild

---------

Co-authored-by: Abishek Bashyal <[email protected]>

---------

Co-authored-by: KlausMikhaelson <[email protected]>
Co-authored-by: Ashis Kumar Pradhan <[email protected]>
Co-authored-by: Abishek Bashyal <[email protected]>
Co-authored-by: akp111 <[email protected]>
Co-authored-by: Aman Gupta <[email protected]>
Co-authored-by: strykerin <[email protected]>
Co-authored-by: Rahul Pandey <[email protected]>
Co-authored-by: dinesh <[email protected]>
Co-authored-by: Satyam <[email protected]>

* fix: fixed

* feat: group msg fix (#765)

* feat: group msg fix

* fix: minor changes

---------

Co-authored-by: Monalisha Mishra <[email protected]>

* fix: added validation for group name and group desc

* fix: fixed scroll

* fix: added validation for custom endpoint

* fix: fixed specific value for guild while edit

* Create group chat comp contract verify (#772)

* feat: contract fectch done

* feat: contract fectch done

* feat: token validation done

* feat: token symbol display done

* feat: duplicate rules fixed

* fix: fixed ui issues

* feat: added token truncation

* feat: token default value done

* fix: fixed minor issues

---------

Co-authored-by: Monalisha Mishra <[email protected]>

* feat: infura key loaded (#780)

---------

Co-authored-by: KlausMikhaelson <[email protected]>
Co-authored-by: Abishek Bashyal <[email protected]>
Co-authored-by: Ashis Kumar Pradhan <[email protected]>
Co-authored-by: akp111 <[email protected]>
Co-authored-by: Aman Gupta <[email protected]>
Co-authored-by: strykerin <[email protected]>
Co-authored-by: Rahul Pandey <[email protected]>
Co-authored-by: dinesh <[email protected]>
Co-authored-by: Satyam <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants